import axios from '@/libs/request/axios'
// 获取风险定价方案
export const getRiskPlanList = (params) => {
    return axios.request({
        url: `/product/riskPlan/getRiskPlanListData`,
        method: 'POST',
        data: params
    })
}
// 保存
export const saveRiskPlan = (params) => {
    return axios.request({
        url: `/product/riskPlan/saveRiskPlan`,
        method: 'POST',
        data: params
    })
}
// 删除方案
export const deletePlan = (id, params) => {
    return axios.request({
        url: `/product/riskPlan/deletePlan/${id}`,
        data:params,
        method: 'delete'
    })
}
// 获取风险定价方案
export const getListRiskData = (params) => {
    return axios.request({
        url: `/product/productPlan/getListRiskData`,
        method: 'POST',
        data: params
    })
}
// 设置有效
export const effective = (params) => {
    return axios.request({
        url: `/product/riskPlan/effective`,
        params: params,
        method: 'post'
    })
}
// 设置无效
export const invalid = (params) => {
    return axios.request({
        url: `/product/riskPlan/invalid`,
        params: params,
        method: 'post'
    })
}
// 复制
export const copyPlan = (params) => {
    return axios.request({
        url: `/product/riskPlan/copyPlan`,
        method: 'POST',
        data: params
    })
}
